package com.show.pm.operator;

import com.show.pm.entity.information.User;
import com.show.pm.service.information.IUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Resource
    private IUserService userService;

    @GetMapping("list")
    public List<User> list(){
        return userService.list();
    }
}
